export {};
type Record<K extends keyof any, T> = {
  [P in K]: T;
};
interface PageInfo {
  title: string;
  src: string;
}
type Page = "home" | "about" | "contact";
// 可以用 Record<string, unknown> 替换掉any
const page: Record<Page, PageInfo> = {
  home: {
    title: "Home",
    src: "./home/index",
  },
  about: {
    title: "About",
    src: "./about/index",
  },
  contact: {
    title: "Contact",
    src: "./contact/index",
  }
};
